﻿using Quartz;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace TaskManagement.Jobs
{
    public class TelnetJob : IJob
    {
        public Task Execute(IJobExecutionContext context)
        {
            var content = context.JobDetail.JobDataMap.GetString("content");
            Console.WriteLine($"Telnet的任务执行时间:{DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")}" + "内容为:" + content );
            return Task.CompletedTask;
        }
    }
}